#ifndef DISCINFO_H
#define DISCINFO_H

#include <string>
#include <vector>
#include <stdint.h>

// disc information
struct track_t
{
	uint32_t offset; // frame offset
	std::string artist;
	std::string title;
	std::string genre;
	std::string comment;
};

class disc_t
{
	public:
	std::string cddb_id;
	std::string disc_id;
	uint16_t length; // in seconds
	std::string year;
	std::string artist;
	std::string title;
	std::string comment;
	std::string genre;
	std::vector<track_t> tracks;

	disc_t& operator=(const disc_t&);
	bool save() const;
	bool load();
};

#endif /* DISCINFO_H */
